const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:5000/',
        changeOrigin: true,
        pathRewrite: {                         // 是否重写路径，看代理前端路径是否与后端路径一致
          '^/api': 'api' 
        }                  
      }
    }
  }
})
